package com.ovopark.organize.server.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 加盟商列表
 *
 */
@TableName("is_franchisees_registration")
public class FranchiseesRegistration implements Serializable {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -8369221521151371836L;

	public static final Integer FLOW_TYPE_UNDISTRIBUTED  = 0;  //未分配

	public static final Integer FLOW_TYPE_TO_BE = 1;  //待跟进

	public static final Integer FLOW_TYPE_ING = 2;  //跟进中

	public static final Integer FLOW_TYPE_RECYCLE = 3;  //回收中

	private Integer id;
	private String name;
	private Integer groupId;
	private String mobilePhone;
    // 性别
	private String gender;
    // 意向等级
	private String intentionLevel;
	// 无意向原因
	private String intentionReason;
	// 年龄
	private Integer age;
	// 微信
	private String weChat;
	// 加盟地区
	private String franchiseRegion;
    // 线索来源
	private Integer sources;
	//创建了
	private Integer createId;

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	// 下次跟进时间
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date nextFollowTime;
	//最后跟进时间
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date finalFollowTime;
	//最后跟进人
	private Integer finalFollowUser;

    // 跟进人
    private Integer followUser;
	// 跟进状态
	/**
	 * 	未分配：线索没有跟进人 0
	 * 	待跟进：线索有跟进人，该跟进人没有添加过跟进记录 1
	 * 	跟进中：线索有跟进人，并且该跟进人添加过跟进记录 2
	 * 	已删除： 放入回收站 3
	 * 	已加盟：线索已经加盟 4
	 *
	 */

	private Integer followType;
	// 跟进阶段

    private Integer followStage;
	// 分配时间
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date distributionTime;

	private Integer isDeleted;

	// 意向点位数
	private Integer pointNumber;
	@TableField(exist = false)
	private Integer  departmentId;

	@TableField(exist = false)
	private Integer  userId;


	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}

	public Integer getFinalFollowUser() {
		return finalFollowUser;
	}

	public void setFinalFollowUser(Integer finalFollowUser) {
		this.finalFollowUser = finalFollowUser;
	}

	public Date getDistributionTime() {
		return distributionTime;
	}

	public void setDistributionTime(Date distributionTime) {
		this.distributionTime = distributionTime;
	}

	public Date getNextFollowTime() {
		return nextFollowTime;
	}

	public void setNextFollowTime(Date nextFollowTime) {
		this.nextFollowTime = nextFollowTime;
	}

	public Date getFinalFollowTime() {
		return finalFollowTime;
	}

	public void setFinalFollowTime(Date finalFollowTime) {
		this.finalFollowTime = finalFollowTime;
	}

	public Integer getFollowUser() {
		return followUser;
	}

	public void setFollowUser(Integer followUser) {
		this.followUser = followUser;
	}

	public Integer getFollowType() {
		return followType;
	}

	public void setFollowType(Integer followType) {
		this.followType = followType;
	}

	public Integer getFollowStage() {
		return followStage;
	}

	public void setFollowStage(Integer followStage) {
		this.followStage = followStage;
	}

	public Integer getSources() {
		return sources;
	}

	public void setSources(Integer sources) {
		this.sources = sources;
	}

	public String getIntentionReason() {
		return intentionReason;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getWeChat() {
		return weChat;
	}

	public void setWeChat(String weChat) {
		this.weChat = weChat;
	}

	public String getFranchiseRegion() {
		return franchiseRegion;
	}

	public void setFranchiseRegion(String franchiseRegion) {
		this.franchiseRegion = franchiseRegion;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getGroupId() {
		return groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getIntentionLevel() {
		return intentionLevel;
	}

	public void setIntentionLevel(String intentionLevel) {
		this.intentionLevel = intentionLevel;
	}

	public void setIntentionReason(String intentionReason) {
		this.intentionReason = intentionReason;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getPointNumber() {
		return pointNumber;
	}

	public void setPointNumber(Integer pointNumber) {
		this.pointNumber = pointNumber;
	}
}
